/*#include <stdio.h>
int main()
{
    int a[10], b[10], i, j = 0, count = 0;
    for (i = 0; i < 10; i++)
	{
        scanf("%d",&a[i]);
        if (a[i] % 2 == 0)
        	{
            	b[j++] = a[i];
            	count ++;
            }
    }
    if(count != 0)
    	for (i = 0; i < j; i++)
        	{
        		if (i != j-1)
        			printf("%d ",b[i]);
        		else
        			printf("%d",b[i]);
            }
	else
		printf("None");
    return 0;
}*/
/*#include<stdio.h>
int main()
{
    int a[10],b[10],i=0,j=0,count=0;
    for(int i = 0;i<10;i++)
    {
        scanf("%d",&a[i]);
        if(a[i]%2==0)
        {
            b[j++]=a[i];
            count++;
        }
    }
    if(count!=0)
  {
    for(i=0;i<j;i++)
    {
        if(i!=j-1)
        {
            printf("%d ",b[i]);
        }
        else 
            printf("%d",b[i]);
    }
  }
    if(count==0)
    {
        printf("None");
    }
    return 0;
}*/
#include<stdio.h>
int mian()
{
	int a[10],b[10],i=0,j=0,count = 0;
	for(i=0;i<10;i++)
	{
		scanf("%d",&a[i]);
		if(a[i]%2==0)
		{
			b[j++]=a[i];
			count++;
		}
	}
	if(count!=0)
	{
		for(i=0;i<j;i++)
		{
			if(i!=j-1)
			{
				printf("%d ",b[i]);
			}
			else 
			printf("%d",b[i]);
		}
	}	
	else if(count==0)
	printf("None");
	return 0;
	
}
